
#include <QPainter>
#include "wall.h"


Wall::Wall():Object()
{
     type=ot::WALL;
     texture=QPixmap(":/resources/wall.png");
}

void Wall::paint(QPainter *painter, const QStyleOptionGraphicsItem *,QWidget *)
{
    painter->drawPixmap(boundingRect().toRect(),texture);
}

QRectF Wall::boundingRect() const
{
    const static QRectF r(-texture.width()/2,-texture.height()/2,texture.width(),texture.height());
    return r;

}


void Wall::purge()
{
}

void Wall::control()
{

}

void Wall::physics()
{

}

void Wall::step()
{

}
